package com.kk.xhr.admin.controller.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户信息
 *
 * @author liujingcheng
 * @version 1.0, 2020/4/2 15:52
 * @since 1.0.0
 */
@ApiModel
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AuthTokenVO {
    @ApiModelProperty(value = "token", example = "xxxxxx")
    private String token;

    public static AuthTokenVO from(String token) {
        return AuthTokenVO.builder()
            .token(token)
            .build();
    }
}
